#! /usr/bin/env python
#coding:gbk
import time
import threading
import sendlog


scount = 0
pp=threading.Thread(target=sendlog.Sn_Thread_SendAll,args=())
pp.start()
t = sendlog.SN_SendLog()
while True:
    ex = "testModal"
    #strsend=[19700101080001,19700101080001,3,4,"127.0.0.1","dssd","process","contenttype",20,60,80,"fss","traff","tctype","attribut","codec","url","date","user_agent"]
    t.error(19700101080001,3, 1,"127.0.0.1","dssd","process",19700101080001,"contenttype",20,60,80,"fss","traff","tctype","attribut","codec","url","date","user_agent")
    time.sleep(0.1)
    scount = scount +1
    if scount >100:
        sendlog.sendlogDown()
        break

print("end of testsendlog\n")
